package com.leaf.u_spring.chapter01;

import java.io.PrintStream;

/**
 * 吟游诗人：歌颂骑士探险前后
 * BraveKnight.java 中调用，业务逻辑会复杂化
 * 
 * knights.xml配置AOP
 * 
 */
public class Minstrel {

	private PrintStream printStream;
	
	public Minstrel(PrintStream printStream){
		this.printStream = printStream;
	}
	
	//探险之前调用
	public void singBeforeQuest(){
		printStream.println("Fa la la,the knight is so brave");
	}
	
	//探险之后调用
	public void singAfterQuest(){
		printStream.println("Tee hee hee,the brave knight did embark on a quest!");
	}
	
}
